<?php
// Russell DB Interface <version>
// Russell's original source code is (c) David Kendal
//---------------------------------------------------
// This work 'as-is' we provide.
// No warranty express or implied.
// We've done our best,
// to debug and test.
// Liability for damages denied.
//
// Permission is granted hereby,
// to copy, share, and modify.
// Use as is fit,
// free or for profit.
// These rights, on this notice, rely.
//---------------------------------------------------

interface DB {
  // Do nothing, but document it?
  public $link;  // represents the link to the server established using a seperate php library.
  public $query; // the result set of the last query to be processed.
  
  // open the database link.
  public function __construct($username, $password, $db, $server="localhost", $port=3306);
  
  // query
  public function query($query);
  
  // get array as php sees fit
  public function fetch_array();
  
  // get associative array
  public function fetch_assoc_array();
  
  // get row
  public function fetch_row();
}


?>